@extends('admin.layout.common')
@section('content')
    <link rel="stylesheet" href="{{URL::asset('js/layui-v2.3.0/layui/css/layui.css')}}">
    <link rel="stylesheet" type="text/css" href="{{URL::asset('common/css/commonality.css')}}">
    <link rel="stylesheet" type="text/css" href="{{URL::asset('css/music/AddCompany.css')}}">
    <link rel="stylesheet" type="text/css" href="{{URL::asset('css/app.css')}}">
    <div class="content">
        <h1 class="h1">公司管理</h1>
        <input type="button" name="" value="新建公司" class="add_company add_btn">
        <table border="1">
            <tr>
                <th>公司名</th>
                <th>公司地址</th>
                <th>组织机构代码</th>
                <th>联系人</th>
                <th>联系电话</th>
                <th>公章</th>
                <th>操作</th>
            </tr>
            @foreach($list as $v)
                <tr>
                    <td>{{$v->company_name}}</td>
                    <td>{{$v->address}}</td>
                    <td>{{$v->code}}</td>
                    <td>{{$v->phone_name}}</td>
                    <td>{{$v->phone}}</td>
                    <td><img src="{{$v->company_image}}" style="width:100px;"></td>
                    <td><input type="button" value="管理" class="manage" id="{{$v->id}}"></td>
                </tr>
            @endforeach
        </table>
        {{ $list->links() }}
    </div>
    <script type="text/javascript" src="{{URL::asset('js/layui-v2.3.0/layui/layui.all.js')}}"></script>
    <script type="text/javascript" src="{{URL::asset('js/music/AddCompany.js')}}"></script>
@endsection
